//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.ruoyi.live.tool.utils;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class Message implements Serializable {
    private static final long serialVersionUID = 1L;
    private String info;
    private boolean success;
    private String ext;
    private Long id;
    private Map<String, String> userData;

    public String getExt() {
        return this.ext;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }

    public Message() {
    }

    public Message(boolean success, String info) {
        this.info = info;
        this.success = success;
    }

    public Message(boolean success, String info, String ext, Long id) {
        this.info = info;
        this.success = success;
        this.ext = ext;
        this.id = id;
    }

    public Message(boolean success, String info, String ext) {
        this.info = info;
        this.success = success;
        this.ext = ext;
    }

    public Message(boolean success, String info, String ext, Map<String, String> userData) {
        this.info = info;
        this.success = success;
        this.ext = ext;
        this.userData = userData;
    }

    public Message(String info, boolean success, Map<String, String> userData) {
        this.info = info;
        this.success = success;
        this.userData = userData;
    }

    public String getInfo() {
        return this.info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public boolean isSuccess() {
        return this.success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public Map<String, String> getUserData() {
        return this.userData;
    }

    public void setUserData(Map<String, String> userData) {
        this.userData = userData;
    }

    public Message setUserData(String key, String value) {
        if (this.userData == null) {
            this.userData = new HashMap();
        }

        this.userData.put(key, value);
        return this;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }
}
